package com.googlecode.yoohoo.xmppcore.stanza;

import com.googlecode.yoohoo.xmppcore.connection.IConnectionContext;
import com.googlecode.yoohoo.xmppcore.protocol.stanza.Stanza;

public interface IStanzasHandler<K extends IConnectionContext> {
	public static final String KEY_STANZAS_HANDLER_TYPE = "__yoohoo.k.ss.h.t__"; // YooHoo key stanzas handler type

	public boolean process(K context, Stanza stanza);
	public void registerHandler(IStanzaHandlerFactory<K, ? extends Stanza> handlerFactory);
	public void unregisterHandler(IStanzaHandlerFactory<K, ? extends Stanza> handlerFactory);

}